package com.cqupt.scanning.system.acl.entity.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Data: 2021/8/1 12:07
 * @Author: 宋宝梁
 */
@Data
public class UserVO implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 账号
     */
    @NotNull(message = "账号不能为NULL")
    @NotBlank(message = "账号不能为空")
    private String username;

    /**
     * 密码
     */
    @NotNull(message = "密码不能为NULL")
    @NotBlank(message = "密码不能为空")
    transient private String password;

    /**
     * 系统角色标识（后端根据接口不同已写死）
     */
    private String note;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 电话
     */
    private String phone;

    /**
     * 邮箱
     */
    @Email(message = "Email format error")
    private String email;

    /**
     * 备注
     */
    private String remark;

    @NotNull(message = "角色id不能为NULL")
    private Integer roleId;

}
